﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Partner.Categories" %>
<div class="common">
<div id="new_body">
        <div id="body_900">
            <div id="body_left"></div>
            <div id="body_main">
                 <div class="Center9001">
                    <div class="Center9001Right">
						<div class="Title">
							<h1>Language Partners Categories</h1>
						</div>
						<div class="content628">
							<div class="group_sortarea" id="askQuestype1">
								<div>Choose what type of language partners you’re looking for:</div>
								<div class="sort_language">For Speaking <select id="Learning1" class="common180" name="Learning"><option value="" selected="selected"><%=GetText("C0028")%></option>
								<%=GetLanguageSelect(BL)%>
								</select>&nbsp;&nbsp;<input id="button" class="buttong" value="<%=GetText("C0048")%>" onclick="searl()" type="button"/></div>
							</div>
						</div>
						<div class="content628 margin20">
							<h3>Popular Languages for language exchange</h3>
							<div class="margin5">
								<ul class="group_catelist">
									<asp:Repeater ID="rptLL" runat="server">
										<ItemTemplate>										
											<li><a href='<%=WWWHost %>/partner/speak-<%#Eval("LanguageValue")%>.htm' title="<%#GetText("Speak {0}",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' border="0"  align='absmiddle' /></a> 
											    <a href='<%=WWWHost%>/partner/speak-<%#Eval("LanguageValue")%>.htm'><%#GetText("Speak {0}", new string[] { Eval("LanguageText").ToString() })%></a></li>
										</ItemTemplate>
									</asp:Repeater>
								</ul>
								<div class="clear"></div>
							</div>	
						</div>
						<div class="content628">						
							<h3>Other Languages for language exchange</h3>
							<div class="margin5">
								<ul class="group_catelist">
									<asp:Repeater ID="rptOthLan" runat="server">
										<ItemTemplate>										
										<li><a href='<%=WWWHost %>/partner/speak-<%#Eval("LanguageValue")%>.htm'><%#GetText("Speak {0}", new string[] { Eval("LanguageText").ToString() })%></a></li>											
										</ItemTemplate>
									</asp:Repeater>
								</ul>
								<div class="clear"></div>
							</div>
						</div>
                    </div>
                    <div class="Center9001Left">											
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4>Active language partners</h4>
								<div class="layer_contentA5">
									<asp:Repeater ID="rptUser" runat="server">
									<ItemTemplate>
									<div class="common_right_pic_list">
										<div class="common_right_pic_listPIC">
										    <div class="pic50">
										        <a class="photo_50" href="<%#WWWHost %>/<%#Eval("MemberNo") %>.htm">
										        <%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>" : Eval("Avatar", "<img src=\"{0}\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>").ToString()%></a>
										    </div>
										</div>
										<div class="">
										    <a href="<%#WWWHost %>/<%#Eval("MemberNo") %>.htm"><%#Eval("Nickname")%></a>
										    <br />from <%#Eval("Nationality")%>
										</div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
								</div>
								<a href="<%=WWWHost %>/partner/">More language partners</a>
							</div>
							<div class="layer_contentA">
								<h4>Newest language partners</h4>
								<div class="layer_contentA5">
									<asp:Repeater ID="rptNewUser" runat="server">
									<ItemTemplate>
									<div class="common_right_pic_list">
										<div class="common_right_pic_listPIC">
										    <div class="pic50">
										        <a class="photo_50" href="<%#WWWHost %>/<%#Eval("MemberNo") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>" : Eval("Avatar", "<img src=\"{0}\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("Nickname").ToString()) + "\"/>").ToString()%></a>
										    </div>
										</div>
										<div class="">
										    <a href="<%#WWWHost %>/<%#Eval("MemberNo") %>.htm"><%#Eval("Nickname")%></a>
										    <br />from <%#Eval("Nationality")%>
										</div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
								</div>
								<a href="<%=WWWHost %>/partner/">More language partners</a>
							</div>
						</div>					
					</div>
                    <div class="clear"></div>
                </div>
            </div>
            <div id="body_right"></div>
            <div class="clear"></div>
        </div>
        <div id="body_900F"></div>
    </div>
</div>
<script>
function searl()
{
    top.location="/partner/speak-"+document.getElementById("Learning1").value+".htm";    
}
</script>